<%-- 
    Document   : ListUpload
    Created on : 2014/8/14, 下午 03:20:38
    Author     : Yu
--%>

<%@page import="java.io.File"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String path=application.getRealPath("/upload");
    File dir=new File(path);
    File ary[]=dir.listFiles();
    
    
    %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>ListUpload</title>
    </head>
    <body>
        <h1>ListUpload</h1>
	<%
	for(File f:ary){
	    if (f.isFile( )){
	
	%>
	<img src="upload/<%= f.getName( )  %>"><br>
		
	<%
	    }
	}
	%>
    </body>
</html>
